import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const TEACHERS: AppRouteRecordRaw = {
  path: '/teachers',
  name: 'TeacherApp',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.teachers',
    requiresAuth: true,
    icon: 'icon-bookmark',
    order: 600,
  },
  children: [
    {
      path: 'list',
      name: 'TeacherListApp',
      component: () => import('@/views/teachers/list/index.vue'),
      meta: {
        locale: 'menu.teachers.list',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'approve',
      name: 'TeacherApproveApp',
      component: () => import('@/views/teachers/approve/index.vue'),
      meta: {
        locale: 'menu.teachers.approve',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'detail',
      name: 'TeacherDetailApp',
      component: () => import('@/views/teachers/detail/index.vue'),
      meta: {
        locale: 'menu.teachers.detail',
        hideInMenu: true,
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default TEACHERS;
